Interview Questions and Answer
Options:
a. unsigned long
b. long
c. char array
d. string
Reveal Answer
Options:
a. printf("10%d", 456);
b. printf("%10d", 456);
c. printf("%10.2d", 456.4);
d. printf("%d %d", 456, 454.4);
Reveal Answer
Options:
a. 9876
b. 987600
c. 009876
d. 980076
Reveal Answer
Options:
a. 98.78
b. 0098.77
c. 98.7754
d. 98.0077
Reveal Answer
Options:
a. assign value to variable
b. logical operator
c. address of operator
d. none of above
Reveal Answer
Options:
a. scanf("%d, %f, %d" &a, &b, &c);
b. scanf("%d", "%d", "%d", &a, &b, &c);
c. scanf("%d %f %d", &a, &b, &c);
d. All of above
Reveal Answer
Options:
a. scanf("%d, %f, %d" &a, &b, &c);
b. scanf("%d", "%d", "%d", &a, &b, &c);
c. scanf("%d %f %d", &a, &b, &c);
d. All of above
Reveal Answer
Options:
a. scanf("%d, %f, %d" &a, &b, &c);
b. scanf("%d", "%d", "%d", &a, &b, &c);
c. scanf("%d %f %d", &a, &b, &c);
d. All of above
Reveal Answer
Options:
a. Assign character without pressing enter key
b. echo’s character instantly without pressing enter key
c. Write a single character after pressing enter key
d. Read a single character after pressing enter key
Reveal Answer
Options:
a. read character instantly without displaying it
b. assign character instantly without pressing enter key
c. display character followed by enter key
d. Both A & B
Reveal Answer
Options:
a. The string of characters including new line character
b. The array of strings including new line character
c. The string of characters excluding new line character
d. The array of strings excluding new line character
Reveal Answer
Options:
a. Store the string of character to char array
b. Write the string of character on o/p screen
c. Read a single character
d. Read string of character
Reveal Answer
Options:
a. Statement 1 is True; Statement 2 is True;
b. Statement 1 is True; Statement 2 is False;
c. Statement 1 is False; Statement 2 is True;
d. Statement 1 is False; Statement 2 is False;
Reveal Answer
Bestdotnet google plus